<?php
defined('IN_IA') or exit('Access Denied');
global $_GPC,$_W;
require MODULE_ROOT.'/vendor/autoload.php';

if($_W['container'] != 'wechat' || $_W['os'] != 'mobile'){
    message('本系统仅支持在手机端微信打开','','info');
    exit;
}
checkauth();
$_web_name = \Pub\tool\Setting::get(\Pub\tool\Setting::WEB_NAME);

$_script = "
<script>
    window.sysinfo = {
        web_name:'".$_web_name."',
        url:'".$this->createMobileUrl('api')."',
        uid:'".$_W['member']['uid']."',
        share_url:'".murl('entry//index',array('m'=>'kuyuan_fm'),true,true)."',
        develop:false
        ";
$_script .= "}</script>";
$_script .= \Pub\tool\Tool::script();

include $this->template('index');